//
//  PhotoBrowserViewController.h
//  etionUI
//
//  Created by wangjian on 1/26/14.
//  Copyright (c) 2014 GuangZhouXuanWu. All rights reserved.
//

#import "PhotoBrowserView.h"

@class CPhotoBrowserViewController;
@protocol CPhotoBrowserViewControllerDelegate <NSObject>

- (NSUInteger)numberOfPhotoForPhotoBrowserViewController:(CPhotoBrowserViewController *)controller;
- (CPhotoBrowserViewCellInfo *)photoBrowserViewController:(CPhotoBrowserViewController *)controller cellInfoAtIndex:(NSUInteger)index;
- (void)photoBrowserViewControllerNeedGetBack:(CPhotoBrowserViewController *)controller;

@optional
- (void)photoBrowserViewController:(CPhotoBrowserViewController *)controller retakePhotoAtIndex:(NSUInteger)index;
- (void)photoBrowserViewController:(CPhotoBrowserViewController *)controller delPhotoAtIndex:(NSUInteger)index;
- (void)photoBrowserViewController:(CPhotoBrowserViewController *)controller updatePhotoAtIndex:(NSUInteger)index withNewPhoto:(UIImage *)newPhoto;
- (void)photoBrowserViewController:(CPhotoBrowserViewController *)controller updateRemarkAtIndex:(NSUInteger)index withNewRemark:(NSString *)newRemark;
- (void)photoBrowserViewController:(CPhotoBrowserViewController *)controller didMoveToPhotoAtIndex:(NSUInteger)index;

@end

@interface CPhotoBrowserViewController : UIViewController

@property (nonatomic, assign) id<CPhotoBrowserViewControllerDelegate> delegate;
@property (nonatomic, readonly) CPhotoBrowserView *photoBrowserView;

- (void)showWithAnchorView:(UIView *)anchorView imageIndex:(NSUInteger)index complete:(void (^)())complete;
- (void)dismissWithAnchorView:(UIView *)anchorView complete:(void (^)())complete;

@end
